<template>
  <div class="card-list">
    <header>
      <span>{{ title }}</span>
      <slot name="func"></slot>
    </header>
    <div style="min-height: 50px;">
      <slot>
        <div style="line-height: 50px; padding: 0 20px;">无数据...</div>
      </slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    }
  }
};
</script>

<style lang="scss" scoped>
.card-list {
  border-radius: 6px;
  overflow: hidden;
  color: #1d2531;
  background: #fff;
}
header {
  height: 38px;
  padding-left: 14px;
  padding-right: 10px;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1D2531;
  background: linear-gradient(
    0deg,
    rgba(244, 246, 250, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  border: 1px solid rgba(236, 237, 240, 1);
}
</style>
